/**
 * 表示一个订单的支付状态。
 * @author jeff
 * 
 */

package com.hk.commons.enm;

public enum ProdStatusEnum {
	
	PRODSTATUS_0(0, "非热销"),
	
	PRODSTATUS_1(1, "热销"),
	
	PRODSTATUS_2(2, "新上架"),
	
	PRODSTATUS_3(3, "代销");
	
	 
	
	private Integer code;

	private String msg;
	
	private ProdStatusEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public Integer getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
	
	public static String getStatus(int i){
		String returnStr = null;
		switch(i){
			case 0: returnStr = ProdStatusEnum.PRODSTATUS_0.getMsg(); break;
			case 1: returnStr = ProdStatusEnum.PRODSTATUS_1.getMsg(); break;
			case 2: returnStr = ProdStatusEnum.PRODSTATUS_2.getMsg(); break;
			case 3: returnStr = ProdStatusEnum.PRODSTATUS_3.getMsg(); break;
		}
		return returnStr;
	}
}
